﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AllInOne.Entity
{
    public class BusinessInfo
    {
        public BusinessType businessType { get; set; }
        public string sfzmhm { get; set; }
        public string xm { get; set; }
        public string sjhm { get; set; }
        public string sfzzp { get; set; }
        public string xczp { get; set; }
        public string qmtp { get; set; }
        public string zp { get; set; }

        public string zxbh { get; set; }

        public long sfzId { get; set; }
        public long xczpId { get; set; }
        public long qmId { get; set; }
        public long zpId { get; set; }
        public string lsh { get; set; }

        public string hphm { get; set; }
        

        public string hpzl { get; set; }
        public string vin6 { get; set; }

        public int lnmjIndex { get; set; }

        public string getImgTitleUrl() {
            switch (this.businessType)
            {
                case BusinessType.QMHZ:
                    return "pack://application:,,,/images/icon_qmhz.jpg";

                case BusinessType.YSBZ:
                    return "pack://application:,,,/images/icon_ysbz.jpg";

                case BusinessType.SHHZ:
                    return "pack://application:,,,/images/icon_shhz.jpg";
                case BusinessType.CCSL:
                    return "pack://application:,,,/images/icon_ccsl.jpg";

                case BusinessType.LNMJ:
                    return "pack://application:,,,/images/icon_lnmj.jpg";

                case BusinessType.WFCL:
                    return "pack://application:,,,/images/icon_wfcl.jpg";

                case BusinessType.ZZPZ:
                    return "pack://application:,,,/images/icon_zzpz.jpg";

                case BusinessType.ZJDY:
                    return "pack://application:,,,/images/icon_dyzj.png";
                    

            }
            return "";
        }

    }


    public enum BusinessType {
        
        /// <summary>
        /// 初次申领
        /// </summary>
        CCSL = 1,

        /// <summary>
        /// 期满换证
        /// </summary>
        QMHZ = 2,

        /// <summary>
        /// 遗失补证
        /// </summary>
        YSBZ = 3,


        /// <summary>
        /// 损毁换证
        /// </summary>
        SHHZ = 4,
        /// <summary>
        /// 六年免检
        /// </summary>
        LNMJ = 5,
        /// <summary>
        /// 违法处理
        /// </summary>
        WFCL = 6,
        /// <summary>
        /// 自助拍照
        /// </summary>
        ZZPZ = 7,
        /// <summary>
        /// 证件打印
        /// </summary>
        ZJDY = 8
    }
}
